<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
							<div class="form-group">	
								<label class="col-sm-3 control-label"><font color="red">*</font>标题：</label>
								<div class="col-sm-8">
									<input id="title" name="title" class="form-control" type="text" required="required">
								</div>
							</div>
							<div class="form-group">	
								<label class="col-sm-3 control-label"><font color="red">*</font>副标题：</label>
								<div class="col-sm-8">
									<input id="subtitle" name="subtitle" class="form-control" type="text" required="required">
								</div>
							</div>
							<div class="form-group">	
								<label class="col-sm-3 control-label">板块：</label>
								<div class="col-sm-8">
									<select id="adpositionid" name ="adpositionid" style="width:470px;height:35px">
										<option value="">请选择</option>
										<option th:each="dict:${listDict}" th:value="${dict.value}" th:text="${dict.name}"></option>
									</select>
								</div>
							</div>
							<div class="form-group">	
								<label class="col-sm-3 control-label">显示：</label>
								<div class="col-sm-8">
									<label class="radio-inline"><input id="state" name="state" type="radio" value="1" checked="checked">是</label>
									<label class="radio-inline"><input id="state" name="state" type="radio" value="2">否</label>
								</div>
							</div>
							<div class="form-group">	
								<label class="col-sm-3 control-label">类型：</label>
								<div class="col-sm-8">
									<label class="radio-inline"><input id="type" name="type" type="radio" value="1" checked="checked">商品</label>
									<label class="radio-inline"><input id="type" name="type" type="radio" value="2">商品分类</label>
								</div>
							</div>
							<div class="form-group">	
								<label class="col-sm-3 control-label">商品：</label>
								<div class="col-sm-8" id="select-url">
									<select id="url" name="url" style="width:470px;height:35px">
										<option value="">请选择</option>
										<option th:each="preProduct:${listPreProduct}" th:value="${preProduct.id}" th:text="${preProduct.name}"></option>
									</select>
								</div>
							</div>
							<div class="form-group">	
								<label class="col-sm-3 control-label">图片：</label>
								<div class="col-sm-8">
									<span class="btn btn-success fileinput-button">
							            <span>上传</span>
							            <input id="initImageFile" type="file" name="file" data-url="http://47.99.99.252:8080/as_file/upload" multiple >
							        </span>
							        <input id="image" name="image" class="form-control" type="hidden" readonly="readonly"/>
							        <img id="img" src="" style="width:60px;height:60px">
								</div>
							</div>
							<div class="form-group">	
								<label class="col-sm-3 control-label"><font color="red">*</font>排序：</label>
								<div class="col-sm-8">
									<input id="sort" name="sort" class="form-control" type="text" required="required">
								</div>
							</div>
							<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="submit" class="btn btn-primary">提交</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
	</div>
	</div>
	<div th:include="include::footer"></div>
	<script type="text/javascript" src="/js/appjs/shop/ad/add.js">
	</script>
</body>
</html>
